<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" 
	template="/layout/template-menu.xhtml"
	contentType="text/html" markupType="xhtml">

	<ui:define name="info">
		<h:outputText value="#{messages['login.welcome']}" styleClass="login-title" />
	</ui:define>
	<ui:define name="content">
		<h:panelGrid columns="2" cellpadding="15" columnClasses="login-cell">
			<h:outputLabel value="#{messages['login.user']}" styleClass="login-label" />
			<h:inputText value="#{credentials.username}" styleClass="menu-input" />
			
			<h:outputLabel value="#{messages['login.pass']}" styleClass="login-label" />
			<h:inputSecret value="#{credentials.password}" styleClass="menu-input" />
		</h:panelGrid>
	</ui:define>
	<ui:define name="buttonbar">
		<a:commandButton value="#{messages['login.init.session']}" styleClass="btn btn-gray" action="#{identity.login()}">
			<s:defaultAction />
		</a:commandButton>
		<a:commandLink value="#{messages['login.request.access']}" action="/request/request.htm" styleClass="a-login" style="margin-left: 10px;" />
		<a:commandLink value="#{messages['login.check.request']}" action="/request/checkrequest.htm" styleClass="a-login" />
	</ui:define>
</ui:composition>
